﻿using FluentNHibernate.Mapping;
using SimpleScrum.Core.Entities;

namespace SimpleScrum.Core.Mappings
{
    public class TeamMap : ClassMap<Team>
    {
        public TeamMap()
        {
            Table("Team");
            LazyLoad();
            Id(x => x.Id).Column("ID").GeneratedBy.GuidComb();
            Map(x => x.Name).Column("Name").Not.Nullable();
            Map(x => x.Status).Column("StatusID").Not.Nullable();
        }
    }
}